#pragma once

#include <sys/types.h>
#include <string>

using namespace std;

namespace logcplus
{
    class logcplus_util
    {
    public:
        static char* get_date(char* date);
        static string& get_date(string& date);
        static char* get_format_time(char* datetime,const char* psFormat);
        static int   get_procname_pid(pid_t pid,char* psProcName);
        static int   system_popen(const char* psCommandBuf,char* sOutPut);
    };
}